package com.yy.dao.impl;

import com.yy.dao.IDao;
import org.springframework.stereotype.Component;

@Component
public class UserDaoImpl implements IDao {
    @Override
    public void minus(String name, int money) {
        //要操作数据库
        System.out.println(name+"的余额减少了"+money+"  元");
    }

    @Override
    public void add(String name, int money) {
        System.out.println(name+"的余额增加了"+money+"  元");
    }
}
